<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2016/10/9
  Time: 21:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@include file="../inc/top.jsp"%>
<div class="panel-body">
    <form role="form" name="RegularSet" id="RegularSet" class="form-horizontal" action="${CONTEXTPATH}/set/RegularSet.press" method="post">
        <h4>常规设置</h4>
        <div class="form-group">
            <label class="col-md-2 control-label">站点名称</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-user"></i>
									</span>
                    <input id="web_name" name="web_name" class="form-control1" type="text" placeholder="站点名称" value="${applicationScope.Option['web_name']}" >
                </div>
            </div>

        </div>
        <h4>管理员设置</h4>
        <div class="form-group">
            <label class="col-md-2 control-label">邮箱</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-envelope-o"></i>
									</span>
                    <input id="email" name="email" class="form-control1" type="text" placeholder="邮箱" value="${sessionScope.admin.user_email}">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">电话</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-phone"></i>
									</span>
                    <input id="phone" name="phone" class="form-control1" type="text" placeholder="电话" value="${sessionScope.admin.user_phone}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">QQ</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-qq"></i>
									</span>
                    <input id="qq" name="qq" class="form-control1" type="text" placeholder="QQ" value="${sessionScope.admin.user_qq}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">微博</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-weibo"></i>
									</span>
                    <input id="weibo" name="weibo" class="form-control1" type="text" placeholder="微博" value="${sessionScope.admin.user_weibo}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">&nbsp;</label>
            <div class="col-md-8">
                <button type="submit" id="setRegular" style="width: 100%" class="btn btn_5 btn-lg btn-primary">保存更改</button>
            </div>
        </div>
    </form>
</div>
<script>
    $(function () {
        if($("#email").val()==""||$("#email").val()==null){
            alert("邮箱不能为空！");
            return;
        }

    })
</script>


<%@include file="../inc/bottom.jsp"%>